<template>
  <div class="movie">
    <p>电影名为4-6个字</p>
    <ul>
      <li v-for="movie in myMovieList" :key="movie.tvId">
        {{ movie.albumName }}
      </li>
    </ul>
    <p>电影名为2-5个字</p>
    <ul>
      <li v-for="movie in yourMovieList" :key="movie.tvId">
        {{ movie.albumName }}
      </li>
    </ul>
  </div>
</template>

<script>
import { mapGetters } from "vuex";
export default {
  name: "Movie",
  computed: {
    ...mapGetters(["myMovieList"]),
    yourMovieList() {
      return this.$store.getters.yourMovieList({ start: 2, end: 5 });
    },
  },
};
</script>

<style scoped>
.movie {
  background-color: pink;
}
</style>